import React from 'react'
import { renderToString } from 'react-dom/server'

function App() {
    const [count, setCount] = React.useState(1)
    return /*#__PURE__*/ React.createElement(
        React.Fragment,
        null,
        /*#__PURE__*/ React.createElement(
            'button',
            {
                onClick: () => setCount(count + 1),
            },
            count
        )
    )
}
const app = /*#__PURE__*/ React.createElement(App, null)

const html = renderToString(app)

console.log(html)
